# 服务名称
APP_NAME := web_server

# 定义源文件路径
STATIC_FILES := $(CURDIR)/static

# 包含通用规则
include ../common.mk

# 复制配置文件
.PHONY: copy_config
copy_config:
	@echo "$(YELLOW)复制静态文件...$(NC)"
	@mkdir -p $(BINARY_PATH)
	@cp -rf $(STATIC_FILES) $(BINARY_PATH)/ || { echo "$(RED)复制静态文件失败！$(NC)"; exit 1; }
	@echo "$(GREEN)静态文件已复制到: $(BINARY_PATH)/$(NC)"

# 扩展build目标
build: copy_config
run: copy_config
